﻿using System;
using System.Collections.Generic;
using System.Web;


namespace MyWebPagesStarterKit
{
    public class SiteMapTree : Section<SiteMapTree.Data>
    {
        public SiteMapTree()
        {
        }

        public SiteMapTree(string id)
            : base(id)
        {
        }

        public override List<SearchResult> Search(string searchString, WebPage page)
        {
            return new List<SearchResult>();
        }

        public string Description
        {
            get
            {
                return base._data.Description;
            }
            set
            {
                base._data.Description = value;
            }
        }

        public override bool IsOnline
        {
            get
            {
                return base._data.IsOnline;
            }
            set
            {
                base._data.IsOnline = value;
            }
        }

        public override Position Position
        {
            get
            {
                return _data.Position;
            }
            set
            {
                _data.Position = value;
            }
        }

        public class Data
        {
            public string Description = string.Empty;
            public bool IsOnline = true;
            public Position Position;
        }
    }
}
